import axios from 'axios'
import qs from 'qs'

axios.defaults.baseURL = 'api'
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded'
axios.defaults.transformRequest = function(data){
    return qs.stringify(data)
}

export default axios